package com.helloword;

import android.os.Bundle;
import android.app.Activity;
import android.text.method.DateTimeKeyListener;
import android.view.*;
import android.widget.EditText;
import android.widget.TextView;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
      
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        
        return true;
    }
    
    /*Evento do botao declarado na view ../res/layout/activity_main.xml*/
    public void PrintText(View view){
    	EditText name = (EditText)this.findViewById(R.id.EditTextName);
    	TextView textName = (TextView)this.findViewById(R.id.TextViewName);
    	textName.setText(name.getText());    	    
    }
}
